package com.mangocity.airticket.b2b.webservice;

public class StopInfoQueryServiceProxy implements com.mangocity.airticket.b2b.webservice.StopInfoQueryService {
  private String _endpoint = null;
  private com.mangocity.airticket.b2b.webservice.StopInfoQueryService stopInfoQueryService = null;
  
  public StopInfoQueryServiceProxy() {
    _initStopInfoQueryServiceProxy();
  }
  
  public StopInfoQueryServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initStopInfoQueryServiceProxy();
  }
  
  private void _initStopInfoQueryServiceProxy() {
    try {
      stopInfoQueryService = (new com.mangocity.airticket.jingdong.webservice.StopInfoQueryServiceImplServiceLocator()).getStopInfoQueryServiceImplPort();
      if (stopInfoQueryService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)stopInfoQueryService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)stopInfoQueryService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (stopInfoQueryService != null)
      ((javax.xml.rpc.Stub)stopInfoQueryService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.mangocity.airticket.b2b.webservice.StopInfoQueryService getStopInfoQueryService() {
    if (stopInfoQueryService == null)
      _initStopInfoQueryServiceProxy();
    return stopInfoQueryService;
  }
  
  public com.mangocity.airticket.b2b.webservice.StopInfoQueryResponse query(com.mangocity.airticket.b2b.webservice.StopInfoQueryRequest parameters) throws java.rmi.RemoteException{
    if (stopInfoQueryService == null)
      _initStopInfoQueryServiceProxy();
    return stopInfoQueryService.query(parameters);
  }
  
  
}